<%@ page language="java" contentType="text/html;charset=utf-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en" class="no-js">
<!--<![endif]-->
<head>
    <jsp:include page="../common/common.jsp"/>
</head>
<body class="page-header-fixed">
<jsp:include page="../common/header.jsp"/>
<div class="clearfix">
</div>
<div class="page-container">
    <div class="page-sidebar-wrapper"><jsp:include page="../common/menu.jsp"/></div>
    <div class="page-content-wrapper">
        <div class="page-content">
            <div class="row">
                <div class="col-md-12">
                    <form class="form-horizontal form-row-seperated" id="form" method="post" action="${path}/duty/save">
                        <div class="portlet box purple">
                            <div class="portlet-title">
                                <div class="caption">
                                    <i class="fa fa-shopping-cart"></i>操作日志详细内容
                                </div>
                                <div class="actions btn-set">
                                    <input class="btn default" type="button" value="取消" onclick="javascript:history.go(-1);">
<!--                                     <button type="button" onclick="save()" class="btn blue"><i class="fa fa-check"></i> 保存 -->
<!--                                     </button> -->
                                </div>
                            </div>
                            <div class="portlet-body">
                                <div class="tabbable">
                                    <div class="tab-content no-space">
                                        <div class="tab-pane active" id="tab_general">
                                            <div class="form-body">
                                                
                                                
                                                
                                                
                                                
                                                <div class="form-group">
													<label class="col-md-2 control-label">记录人员: </label>
													 <div class="col-md-5">
                                                        <input id="dutyname" name="dutyname" type="text"
                                                               class="form-control tags medium"
                                                               value="${data.dutyname}" />
                                                    </div>
												</div>

												<div class="form-group">
													<label class="col-md-2 control-label">发布时间: </label>

													<div class="col-md-5">
														<input id="createtime" name="createtime"
															type="text" class="form-control tags medium"
															value="${fn:substring(data.createtime,0,19)}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/>
													</div>
												</div>
												<div class="form-group">
													<label class="col-md-2 control-label">操作: </label>
													<div class="col-md-5">
																 <select name="status" class="form-control">
											
																<option value="1"
																	<c:if test="${1== data.operation }">selected="selected" </c:if>>新增</option>
																<option value="2"
																	<c:if test="${2== data.operation }">selected="selected" </c:if>>修改</option>
																<option value="3"
																	<c:if test="${3== data.operation }">selected="selected" </c:if>>删除</option>
															</select>
														</div> 
												</div>
                                                <div class="form-group">
													<label class="col-md-2 control-label">菜单名称: </label>
													 <div class="col-md-5">
                                                        <select name="status" class="form-control">
											
																<option value="1"
																	<c:if test="${1== data.menuname }">selected="selected" </c:if>>execl导入</option>
																<option value="2"
																	<c:if test="${2== data.menuname }">selected="selected" </c:if>>派工单查询</option>
																<option value="3"
																	<c:if test="${3== data.menuname }">selected="selected" </c:if>>机具管理</option>
																<option value="4"
																	<c:if test="${4== data.menuname }">selected="selected" </c:if>>视频监控</option>
																<option value="5"
																	<c:if test="${5== data.menuname }">selected="selected" </c:if>>储位管理</option>
																<option value="6"
																	<c:if test="${6== data.menuname }">selected="selected" </c:if>>材料管理</option>
																<option value="7"
																	<c:if test="${7== data.menuname }">selected="selected" </c:if>>操作日志</option>
																		</select>
																 </div>
														</div> 
                                                    </div>
												</div>
                                            </div>
                                        </div>
                                    </div>
<!--                                 </div> -->
<!--                             </div> -->

                            <div class="portlet-title">
                                <div class="actions btn-set">
                                     <input class="btn default" type="button" value="取消" onclick="javascript:history.go(-1);">
<!--                                     <button type="button" onclick="save()" class="btn blue"><i class="fa fa-check"></i> 保存 -->
<!--                                     </button> -->
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<jsp:include page="../common/footer.jsp"/>
<!-- <script type="text/javascript" src="${path}/assets/plugins/calendar/WdatePicker.js"></script> -->
<!-- <script type="text/javascript" src="${path}/assets/plugins/bootstrap-fileinput/bootstrap-fileinput.js"></script> -->
<!-- <script type="text/javascript" src="${path}/assets/plugins/jquery-inputmask/jquery.inputmask.bundle.min.js"></script> -->
<!-- <script type="text/javascript" src="${path}/assets/plugins/jquery.input-ip-address-control-1.0.min.js"></script> -->
<!-- <script type="text/javascript" src="${path}/assets/plugins/jquery.pwstrength.bootstrap/src/pwstrength.js"></script> -->
<!-- <script type="text/javascript" src="${path}/assets/scripts/biz/ajaxfileupload.js"></script> -->
<!-- <script type="text/javascript" src="${path}/assets/plugins/district/linkagesel-min.js"></script> -->
<script type="text/javascript" src="${path}/assets/plugins/calendar/WdatePicker.js"></script>
	<script type="text/javascript"
		src="${path}/assets/plugins/bootstrap-fileinput/bootstrap-fileinput.js"></script>
	<script type="text/javascript"
		src="${path}/assets/plugins/jquery-inputmask/jquery.inputmask.bundle.min.js"></script>
	<script type="text/javascript"
		src="${path}/assets/plugins/jquery.input-ip-address-control-1.0.min.js"></script>
	<script type="text/javascript"
		src="${path}/assets/plugins/jquery.pwstrength.bootstrap/src/pwstrength.js"></script>
	<script type="text/javascript"
		src="${path}/assets/scripts/biz/ajaxfileupload.js"></script>
	<script type="text/javascript"
		src="${path}/assets/plugins/district/linkagesel-min.js"></script>
	<script type="text/javascript" src="${path}/operate/js/topDz.js"></script>
<script>
    var operType = '${operType}';
    var editor, form;
    
    function save() {
//         var context = UE.getEditor('editor').getContent();
//         if (!/[\w\W]+/.test(context)) {
//             alert("内容不能为空");
//             return;
//         }
//         $("#context").val(context);

	/*	if ($("#file1").val() !== "") { 
			$.ajaxFileUpload({
				url : '${path}/conf/upload',
				secureuri : false,
				fileElementId : 'file',
				dataType : 'json',
				success : function(data, status) {
					if (data.statusCode == 200) {
						$("#xlsUrl").val(data.uri);

						//                         $("#form").submit();
					} else
						alert(data.info);
				}
			});
		}
		if ($("#file2").val() !== "") { 
			$.ajaxFileUpload({
				url : '${path}/conf/upload',
				secureuri : false,
				fileElementId : 'file',
				dataType : 'json',
				success : function(data, status) {
					if (data.statusCode == 200) {
						$("#xlsUrl").val(data.uri);

						//                         $("#form").submit();
					} else
						alert(data.info);
				}
			});
		}*/
	    $("#form").submit();
    }
</script>
</body>
</html>